<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>

<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title></title>
    <link rel="stylesheet" href="${path}/css/style.css" type="text/css" media="all"/>
    <meta name="description" content="">
</head>
<body>

<div id="content">
    <h1> 添加用户 </h1>

    <form action="/UserAddServlet?action=addUser" method="post" autocomplete="on">
        <%--<p><label>头像<span class="required">*</span></label>--%>
        <%--<input type="file" name="userimg" id="userimg" required="required" placeholder="用户头像"/></p>--%>

        <p><label> 用户名 <span class="required">*</span></label>
            <input type="text" name="username" id="username" required="required" placeholder="填写用户名"/></p>

        <p><label> 用户密码 <span class="required">*</span></label>
            <input type="text" name="userpwd" id="userpwd" placeholder="填写用户密码" required="required"/></p>

        <p><label> 所属部门 <span class="required">*</span></label><br>
            <select name="userdept" id="userdept" placeholder="选择用户部门" required="required" style=" width: 396px;
    height: 31px;">
                <c:if test="${fn:length(depts)>0}">
                    <c:forEach var="dept" items="${depts}" varStatus="ind">
                        <option value="${dept.id}">${dept.deptName}</option>
                    </c:forEach>
                </c:if>
            </select></p>
        <p><label> 姓名 <span class="required">*</span></label>
            <input type="text" name="userrname" id="userrname" placeholder="填写姓名" required="required"/></p>
        <p><label> 性别 <span class="required">*</span></label>
            <input type="text" name="usersex" id="usersex" placeholder="填写性别" required="required"/></p>
        <p><label> QQ <span class="required">*</span></label>
            <input type="text" name="userqq" id="userqq" placeholder="填写QQ" required="required"/></p>
        <p><label> Email <span class="required">*</span></label>
            <input type="text" name="useremail" id="useremail" placeholder="填写Email" required="required"/></p>
        <p><label> 电话 <span class="required">*</span></label>
            <input type="text" name="userephone" id="userephone" placeholder="填写电话" required="required"/></p>
        <p><label> 城市 <span class="required">*</span></label>
            <input type="text" name="userecity" id="userecity" placeholder="填写城市" required="required"/></p>
        <p><label> 身份证号 <span class="required">*</span></label>
            <input type="text" name="usereid" id="usereid" placeholder="填写身份账号" required="required"/></p>
        <p><label> 生日 <span class="required">*</span></label>
            <input type="text" name="userebirthday" id="userebirthday" placeholder="填写生日" required="required"/></p>
        <p><label> 简介 <span class="required">*</span></label>
            <textarea placeholder="用户简介" required="userintro" name="userintro"></textarea></p>
        <input type="submit" value="提交"/>

    </form>
</div>
<div style="text-align:center;clear:both">
</div>
</body>
</html>    
